<%@page import="helpers.UrlHelper"%>
<%@page import="entities.SiteConfig"%>
<%
	SiteConfig siteConfig = (SiteConfig) request.getAttribute("config");
	String image = UrlHelper.getServerUrl(request) + "/blobstore-serve?blob-key=" + siteConfig.getLogo();
	String ip = (String) request.getAttribute("ip");
%>


<jsp:include page="/demo/layouts/header.jsp">
    <jsp:param name="title" value="<%=siteConfig.getTitle()%>" />
    <jsp:param name="description" value="<%=siteConfig.getMetaDescription()%>" />
    <jsp:param name="keywords" value="<%=siteConfig.getMetaKeywords()%>" />
    <jsp:param name="ogsite_name" value="<%=siteConfig.getSiteName()%>" />
    <jsp:param name="ogtitle" value="<%=siteConfig.getTitle()%>" />
    <jsp:param name="ogurl" value="<%=UrlHelper.getServerUrl(request)%>" />
    <jsp:param name="ogimage" value="<%=image %>" />
    <jsp:param name="ogdescription" value="<%=siteConfig.getMetaDescription()%>" />
</jsp:include>

<script type="text/javascript" src="http://ip-geo.appspot.com/geo_data.js"></script>

		<div class="dir">
			<a href="/home">Home</a> > MyIp
		</div>
		
		<br />
		<div class="submit-form">
			<table width="100%" cellpadding="0" cellspacing="0">
				<thead>
					<tr>
						<td><div class="title-form">Your IP Address Is: <a href="/checkip?ip=<%=ip %>"><%=ip %></div></td>
					</tr>
				</thead>
				<tbody>
						<td>
							<script type='text/javascript'>
								document.write(geo.generate_map(500, 400));
							</script>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
<jsp:include page="/demo/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>